@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="insuranceKindInfoForm">
            <input type="hidden" id="policyId" value="${policyId}">
            <input name="formToken" type="hidden" value="${session.formToken}" />
            <div class="row">
                <div class="col-sm-9">
                    <#input id="insuranceKindCode" name="险种代码" maxlength="4" />
                    <#input id="insuranceKindName" name="险种名称" maxlength="50" />
                    <#select id="insuranceKindType" name="险种类型">
                        <option value="301">意外伤害保险</option>
                        <option value="302">交通意外伤害保险</option>
                        <option value="303">定期寿险</option>
                        <option value="304">重大疾病保险</option>
                        <option value="305">补充医疗保险</option>
                        <option value="306">生育医疗保险</option>
                        <option value="307">高端医疗保险</option>
                        <option value="308">意外伤害医疗保险</option>
                        <option value="309">住院津贴医疗保险</option>
                        <option value="310">公共保额医疗保险</option>
                        <option value="311">差旅保险</option>
                        <option value="312">雇主责任保险</option>
                        <option value="313">家财保险</option>
                    </#select>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">保额及保费（元）</label>
                        <div class="col-sm-2" style="padding-right: 0; display: flex; align-items: center;">
                            <input type="radio" name="amountType" value="1" onclick="InsuranceKindInfoDlg.selectAmountType(1)">
                            <label class="control-label" style="padding-left: 5px;">固定保额</label>
                        </div>
                        <div class="col-sm-3" style="padding: 0;margin-left: 31px;">
                            <input id="fixAmountLimit" class="form-control" name="fixAmountLimit" placeholder="请填写保额" type="number" min="0" step="0.01" max="999999999999999999.99" />
                        </div>
                        <div class="col-sm-3" style="padding: 0">
                            <input id="fixAmount" class="form-control" name="fixAmount" placeholder="请填写保费" type="number" min="0" step="0.01" max="99999999.99" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label"></label>
                        <div class="col-sm-2" style="padding-right: 0; display: flex; align-items: center;">
                            <input type="radio" name="amountType" value="2" onclick="InsuranceKindInfoDlg.selectAmountType(2)">
                            <label class="control-label" style="padding-left: 5px;">浮动保额</label>
                        </div>
                        <div class="col-sm-3" style="padding: 0;margin-left: 31px;">
                            <input id="floatAmountLimit" class="form-control" name="floatAmountLimit" placeholder="请填写免核保额度" type="number" min="0" step="0.01"  max="999999999999999999.99" />
                        </div>
                        <div class="col-sm-3" style="padding: 0;position: relative">
                            <input id="floatAmount" class="form-control" name="floatAmount" placeholder="请填写保费比例" type="number" min="0" max="100" step="0.01" />
                            <span style="position: absolute;right:6px;top:10px">%</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">保障说明</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="insuranceExplain" maxlength="500"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">备注</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="insuranceComment" maxlength="500"></textarea>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-12" style="text-align: center;">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="InsuranceKindInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="InsuranceKindInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/system/insuranceKind/insuranceKind_info.js"></script>
@}
